home *** CD-ROM | disk | FTP | other *** search
- OPEN "r",#1,"AddressFile.rel",92
- FIELD #1,30 AS Nam$,30 AS Address$,20 AS City$,12 AS Phone$
-
- Entry:
- PRINT
- INPUT "Name";NamEntry$
- INPUT "Address";AddressEntry$
- INPUT "City";CityEntry$
- INPUT "Phone";PhoneEntry$
- LSET Nam$=NamEntry$
- LSET Address$=AddressEntry$
- LSET City$=CityEntry$
- LSET Phone$=PhoneEntry$
- x=x+1
- PUT #1,x
- PRINT "Record"x" ("Nam$") stored."
- PRINT "Add more records?"
- INPUT "Y/N:";Ans$
- IF UCASE$(Ans$)="Y" THEN Entry
-
- CLOSE 1
- PRINT "File closed. Program ended."
-
-